package com.linjj.seckill.mapper;

import com.linjj.seckill.domain.City;
import com.linjj.seckill.domain.Province;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface AddressMapper {
    @Select("select * from province")
    public List<Province> queryProvinces();
    @Select("select * from city where pid = #{pid}")
    public List<City> queryCitys(long pid);
}
